function getRequestUrl() {
    var url = self.window.location.href;

    var o = {};
    if (url.indexOf('?') > 0) {
        var data = (url.split('?'))[1];

        if (data.indexOf('&') > 0) {
            data1 = (data.split('&'));
            $.each(data1, function (index, el) {
                el=el.replace("=","$=$");
                var a = el.split("$=$");
                var key = a[0];
                var value = a[1];
                o[key] = value;
            });
        } else {
            data=data.replace("=","$=$");
            var a = data.split("$=$");
            var key = a[0];
            var value = a[1];
            o[key] = value;
        }
        return o;
    } else {
        return o;
    }
}